<template>
  <view class="container">
    <uni-forms :modelValue="form" label-width='230rpx'>
      <uni-forms-item label="生育祝福金" name="amount">
        <uni-easyinput type="number" v-model="form.amount" placeholder="请输入生育祝福金"></uni-easyinput>
      </uni-forms-item>
      <uni-forms-item label="申领次数" name="times">
        <uni-easyinput type="number" v-model="form.times" placeholder="请输入申领次数"></uni-easyinput>
      </uni-forms-item>

    </uni-forms>
    <view class="tip">
      <uni-icons type="help" size="20"></uni-icons>
      <text style="font-size: 12px;">
        【{{ currentSyr.name }}】每生育一个子女时，【{{ currentSyr.name }}】经提前书面通知受托人且分别提供相应有效的子女出生医学证明或其他可以证明【{{ currentSyr.name }}】生育子女的材料后，可分别一次性申领生育祝福金不超过【{{
          form.amount || '申领金额'
        }}】万元。【{{ currentSyr.name }}】就其生育的同一个子女仅限申领一次。申领次数不超过【{{ form.times || '申领次数' }}】次。如无需填写，则选择跳过。
      </text>
    </view>
    <view class="bottom" style="display: flex;justify-content: center">
      <button class="button" type="primary" @click="jump(206)">跳过</button>
      <button class="button" type="primary" @click="submit">下一步</button>
    </view>
  </view>
</template>

<script>
import userInfoMixin from "../../common/js/userInfoMixin";

export default {
  mixins: [userInfoMixin],
  data() {
    return {
      name: '205',
      form: {
        amount: '',
        times: ''
      }
    }
  },
  methods: {

    change() {

    },
    prevStep() {
      uni.navigateTo({
        url: '/pages/204syrfpj/204syrfpj',
        success() {
          console.log('succ')
        },
        fail() {
          console.log('failed')
        }
      })
    },
    submit() {
      this.submitData({key: 'syzfj', data: this.form}, '206')
    },
  }
}
</script>

<style>

</style>
